﻿#if UNITY_5_3
using UnityEngine.SceneManagement;
#endif

using UnityEngine;
using UnityEngine.SceneManagement;

namespace InfiniteHopper
{
    /// <summary>
    /// Includes functions for loading levels and URLs. It's intended for use with UI Buttons
    /// </summary>
    public class IPHLoadLevel : MonoBehaviour
    {
        public void LoadURL(string urlName)
        {
            Application.OpenURL(urlName);
        }
        public void LoadLevel(string levelName)
        {
            SceneManager.LoadScene(levelName);
        }
    }
}